<?php
header("Content-Type: text/javascript");
include 'func.php';
?>
var buttons = {};
buttons.logout = {
"<?=$i18n->get('login/logout/no')?>": function () {
        $("#dialog").dialog("close");
    },
    "<?=$i18n->get('login/logout/yes')?>": function () {
        $(".ui-dialog-content").lp("login.php?m=logout;submit", pload);
    }
};
buttons.ntopic = {
    "Submit": function () {
        $('form#topic').ajaxSubmit({ target: '.ui-dialog-content' });
    },
    "Preview": function () {
        topic_preview();
    }
};